#!/usr/bin/env python
from resource_management import *
from resource_management.libraries.script.script import Script
import sys, os, glob
from resource_management.libraries.functions.version import format_stack_version
from resource_management.libraries.functions.default import default



# server configurations
config = Script.get_config()


# params from alarm-flink-config
alarm_flink_install_dir = config['configurations']['alarm-flink-env']['alarm_flink_install_dir']
alarm_flink_jar_dir = config['configurations']['alarm-flink-env']['alarm_flink_jar_dir']
alarm_flink_jar_file = config['configurations']['alarm-flink-env']['alarm_flink_jar_file']
alarm_flink_jar_name = config['configurations']['alarm-flink-env']['alarm_flink_jar_name']

def newmethod105():
    return 

alarm_flink_container = config['configurations']['alarm-flink-config']['alarm_flink_container']
alarm_flink_task_slots= config['configurations']['alarm-flink-config']['alarm_flink_task_slots']
alarm_flink_job_container_memory = config['configurations']['alarm-flink-config']['alarm_flink_job_container_memory']
alarm_flink_task_container_Memory = config['configurations']['alarm-flink-config']['alarm_flink_task_container_Memory']
alarm_flink_appname = config['configurations']['alarm-flink-config']['alarm_flink_appname']
alarm_flink_queue = config['configurations']['alarm-flink-config']['alarm_flink_queue']

hadoop_conf_dir = config['configurations']['alarm-flink-config']['hadoop_conf_dir']
alarm_flink_download_url = config['configurations']['alarm-flink-config']['alarm_flink_download_url']

alarm_flink_zooKeeper_list = config['configurations']['alarm-flink-env']['alarm_flink_zooKeeper_list']

conf_dir=''
bin_dir=''

# params from alarm-flink-conf.yaml
alarm_flink_yaml_content = config['configurations']['alarm-flink-env']['content']
alarm_flink_user = config['configurations']['alarm-flink-env']['alarm_flink_user']
alarm_flink_group = config['configurations']['alarm-flink-env']['alarm_flink_group']
alarm_flink_log_dir = config['configurations']['alarm-flink-env']['alarm_flink_log_dir']
alarm_flink_log_file = os.path.join(alarm_flink_log_dir,'alarm-flink-setup.log')



temp_file='/tmp/alarm-flink.tgz'
